package com.podcstr.entity;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;

/**
 * @author azim
 * @since 5/12/13 
 */

@Entity
@Table(name = "tb_follow")
public class Follow extends PersistanceObject {

    @OneToMany
    private List<User> followers;

    @OneToMany
    private List<User> followings;

    public List<User> getFollowers() {
        return followers;
    }

    public void setFollowers(List<User> followers) {
        this.followers = followers;
    }

    public List<User> getFollowings() {
        return followings;
    }

    public void setFollowings(List<User> followings) {
        this.followings = followings;
    }
}
